package com.baidu.echarts;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;

public class DataView {
    @JsonProperty(index = 1)
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private Boolean show;

    @JsonProperty(index = 2)
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private Boolean readOnly;

    public DataView(){

    }
    public DataView(Boolean show, Boolean readOnly) {
        this.show = show;
        this.readOnly = readOnly;
    }

    public Boolean getShow() {
        return show;
    }

    public DataView setShow(Boolean show) {
        this.show = show;
        return  this;
    }

    public Boolean getReadOnly() {
        return readOnly;
    }

    public DataView setReadOnly(Boolean readOnly) {
        this.readOnly = readOnly;
        return this;
    }
}
